package hospital.user;

import io.swagger.annotations.Api;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author
 * @description: user服务的
 */
@SpringBootApplication
@ComponentScan(basePackages = "hospital")
@EnableDiscoveryClient //给Nacos注册中心，注册
@EnableFeignClients(basePackages = "hospital")     //让微服务之间的调用变得更简单
@Api("用户接口")
//@EnableSwagger2
public class ServiceUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceUserApplication.class, args);
    }
}
